import {createI18n} from "vue-i18n";
import zh from '@/lang/zh';
import en from '@/lang/en';
import {userStore} from "@/store/module/user";

const store = userStore

const i18n = createI18n({
    globalInjection: true, // 全局注册 $t方法
    locale: 'zh',
    messages: {
        zh,
        en,
    },
})

export default i18n